import java.awt.Color;
import java.util.ArrayList;


public class modeMon {
	
	final static int vila=4, amb=0, str=1, colm=2, pul=3;
	int mode;
	int NbrLeds;
	ArrayList<Color> colorlist;
	Color color;
	boolean busy=false;
	
	public modeMon(int mode, int leds){
		this.mode=mode;
		NbrLeds=leds;
	}
	
	public synchronized int getMode(){
		return mode;
	}
	public synchronized void setMode(int mode){
		this.mode=mode;
	}
	
	public int getNbrLeds(){
		return NbrLeds;
	}
	
	public synchronized void setColor(ArrayList<Color> colorlist){
		this.colorlist=colorlist;
	}
	
	public synchronized ArrayList<Color> getColor(){
		return colorlist;
	}
	
	public synchronized void setSolidColor(Color c){
		color=c;
		for(int i=0; i<NbrLeds; i++) {
			colorlist.add(i, c);
		}
	}
	
	public synchronized Color getSolidColor(){
		return color;
	}
	public synchronized boolean isBusy(){
		return busy;
	}
	public synchronized void setBusy(boolean state){
		busy=state;
	}
}
